0e99a8
@@ -167,6 +167,9 @@
static ASTNode literal(RexLiteral literal, boolean useTypeQualInLiteral) {
       type = HiveParser.SmallintLiteral;
       break;
     case INTEGER:
+      val = literal.getValue3();
+      type = HiveParser.BigintLiteral;
+      break;
     case BIGINT:
       if (useTypeQualInLiteral) {
         val = literal.getValue3() + "L";
